﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="action_Team_Gallary.aspx.cs" Inherits="action_Team_Gallary" %>
<%@ Import Namespace="Net.Ntalent.Action50.Core.Util"%>
<%@ Import Namespace="Net.Ntalent.Action50.DataAccess"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<!--下拉框所用文件S-->
<script type="text/javascript" src="js/navList.js"></script>
<!--下拉框所用文件E-->

<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Action_Team_Gallery</title>
<link type="text/css" rel="stylesheet" href="css/common.css" />
<link type="text/css" rel="stylesheet" href="css/action.css" />
 <!-- Arquivos utilizados pelo jQuery lightBox plugin -->
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>

    <link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" />
    <!-- / fim dos arquivos utilizados pelo jQuery lightBox plugin -->
    
    <!-- Ativando o jQuery lightBox plugin -->
    <script type="text/javascript">
    $(function() {
        $('.galleryContent a').lightBox();
    });
    </script>
</head>

<body onload="startList();">
    <form id="form1" runat="server">
<div class="wrappera">
	<div class="wrapperb">
		<!-- 界面头部 S -->
		<div id="head" class="head">
			<!-- 界面头部 网站LOGO S -->
			<div id="site_logo">
			</div>
			<!-- 界面头部 网站LOGO E -->
			<!-- 界面头部 网站导航栏 S -->
			<div class="site_nav">
				<ul id="nav">
					<li class="nowPaged"><a href="Default.aspx">HOME</a></li>
					<li><a href="#">ABOUT US</a></li>
					<li><a href="action_List.aspx">ACTIONS</a></li>
<li class="right" id="Li_Login" runat="server"><a href="admin_Login.aspx">LOGIN</a></li>

		<li class="right" id="Li_Admin" runat="server"><a href="admin_Action_List.aspx">ADMIN</a>
<ul>
		<li>
				<asp:LinkButton ID="LinkButton3" runat="server" onclick="LinkButton3_Click">LOGOUT</asp:LinkButton></li>
		</ul>
</li>
					<li class="right"><a href="#">CONTACT US</a></li>
					<li class="right"><a href="#">PARTNERS</a></li>
				</ul>
			</div>
			<!-- 界面头部 网站导航栏 E -->
		</div>
		<!-- 界面头部 E -->

		<!-- 界面主体部分 S -->
		<div class="mainBody">
			<!-- 界面主体部分 介绍栏 S -->
			<div class="introduction">
				<div class="wordsIntro">
					<div class="wordsWrapper">
				<p>
<asp:Literal ID="Literal_Ourcation" runat="server"></asp:Literal></p>
					</div>
				</div>
				<div class="photoIntro">

<asp:Image ID="Image_TeamPhoto" runat="server" />
			

			
				</div>
			</div>
			<!-- 界面主体部分 介绍栏 E -->
			
			<!-- 界面主体部分 细节部分 S -->
			<div class="details">
				<!-- 界面主体部分 细节部分 菜单 S -->
				<div class="menu">
					<div class="menuItem" ><a href="action_Team.aspx?actionId=<%=Request["actionId"]%> ">Teams</a></div>
					<div class="menuItem"><a href="action_newsList.aspx?actionId=<%=Request["actionId"]%> ">News</a></div>
					<div class="menuItem" ><a href="action_logsList.aspx?actionId=<%=Request["actionId"]%> ">Logs</a></div>
					<div class="menuItem" id="menuItem-actived"><a href="action_Team_Gallary.aspx?actionId=<%=Request["actionId"]%> ">Gallery</a></div>
				</div>
				<!-- 界面主体部分 细节部分 菜单 E -->
				
				<!-- 界面主体部分 细节部分 内容 S -->
				<div class="contentDetails">
				
					<div class="contentTitle"><img src="images/action_gallery_title.png" alt="" /></div>
<asp:ListView ID="ListView_Gallarys" runat="server" DataSourceID="ObjectDataSource1" 
                        ondatabound="ListView_Gallarys_DataBound" 
                        onitemdatabound="ListView_Gallarys_ItemDataBound">
    <LayoutTemplate>
        <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
    </LayoutTemplate>
    <ItemTemplate>
        <div class="galleryContent">
            <a  href="Handlers/GallaryHandler.ashx?action=getImage&id=<%#((T_GALLARY)Container.DataItem).Id %>" title="<%#((T_GALLARY)Container.DataItem).GALLARY_DESC %>"><img src="Handlers/GallaryHandler.ashx?action=getImage&id=<%#((T_GALLARY)Container.DataItem).Id %>" alt=""  /></a>

        </div>  
    </ItemTemplate>
</asp:ListView>

				<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                        SelectMethod="RetrieveByAction" 
                        TypeName="Net.Ntalent.Action50.Core.Dao.GallaryDao">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="id" QueryStringField="actionId" Type="Int64" />
                            <asp:Parameter DefaultValue="3" Name="gallaryType" Type="Object" />
                            <asp:Parameter DefaultValue="0" Name="pageNumber" Type="Int32" />
                            <asp:Parameter DefaultValue="0" Name="pageSize" Type="Int32" />
                            <asp:Parameter DefaultValue="UPLOAD_DATE DESC" Name="orderBy" Type="String" />
                        </SelectParameters>
                    </asp:ObjectDataSource>



       
            <div class="turnPage">
 
<asp:DataPager PagedControlID="ListView_Gallarys" ID="DataPager1" runat="server" PageSize="12">
    <Fields>
        <asp:NextPreviousPagerField ButtonType="Link" ShowNextPageButton="false" ShowLastPageButton="false"
            ShowFirstPageButton="true"  FirstPageText="First" RenderNonBreakingSpacesBetweenControls="false"
            ShowPreviousPageButton="true" PreviousPageText="&lt; Previous" ButtonCssClass="linkB left"
             /> 

        <asp:NumericPagerField  ButtonType=Link CurrentPageLabelCssClass="linkC left" NumericButtonCssClass="linkC left" RenderNonBreakingSpacesBetweenControls="false" ButtonCount=10/>

        <asp:NextPreviousPagerField ButtonType="Link"  ButtonCssClass="linkB left" ShowFirstPageButton="false" ShowPreviousPageButton="false"
            ShowNextPageButton="true" NextPageText="Next &gt;"  RenderNonBreakingSpacesBetweenControls="false"
            ShowLastPageButton="true"  LastPageText="Last"/>
    </Fields>
</asp:DataPager>
       
			</div>






				</div>
				<!-- 界面主体部分 细节部分 内容 E -->
			</div>
			<!-- 界面主体部分 细节部分 E -->
		</div>
		<!-- 界面主体部分 E -->
		
		<!-- 界面尾部 S -->
		<div id="footer" class="footer">
		</div>
		<!-- 界面尾部 E -->


	</div>
</div>
<asp:PlaceHolder ID="PlaceHolder1" runat="server">



</asp:PlaceHolder>

</form>

</body>

</html>

